{extend name="Public/main"/}

{block name='body'}
<div class="layui-layout layui-layout-admin">
    <div class="layui-header framework-topbar">
        <div class="layui-logo">后台管理</div>
        <ul class="layui-nav layui-layout-right">
            <li class="layui-nav-item">
                <a href="/" target="_blank">前台首页</a>
            </li>
            <li class="layui-nav-item">
                <a href="javascript:;" data-load="{:U('clearRuntime')}">清理缓存</a>
            </li>
            <li class="layui-nav-item">
                <a href="javascript:;">
                    {$Think.session.user_info.username}
                </a>
                <dl class="layui-nav-child">
                    <dd><a href="javascript:;" data-modal="{:U('Index/pass')}" data-title="修改密码">修改密码</a></dd>
                    <dd><a href="javascript:;" data-load="{:U('Login/logout')}" data-confirm="确定退出登录吗？">退出登录</a></dd>
                </dl>
            </li>
        </ul>
    </div>
    <div class="layui-side layui-bg-black">
        <div class="layui-side-scroll">
            <!-- 左侧导航区域（可配合layui已有的垂直导航） -->
            <ul class="layui-nav layui-nav-tree" lay-shrink="all" lay-filter="test">
                <li class="layui-nav-item {empty name='Think.cookie.menu_id'}layui-this{/empty}">
                    <a href="javascript:;" data-menu-id="0" data-open="{:U('Index/main')}">
                        <i class="fa fa-home font-icon"></i>&nbsp;
                        后台首页
                    </a>
                </li>
                <li class="layui-nav-item {eq name='Think.cookie.menu_id' value='2'}layui-this{/eq}">
                    <a class="" href="javascript:;" data-open="{:U('Config/index')}" data-menu-id="2">
                        <i class="fa fa-modx font-icon"></i>&nbsp;
                        系统设置
                    </a>
                </li>
                <li class="layui-nav-item {eq name='Think.cookie.menu_id' value='3'}layui-this{/eq}">
                    <a class="" href="javascript:;" data-open="{:U('Package/index')}" data-menu-id="3">
                        <i class="fa fa-gg-circle font-icon"></i>&nbsp;
                        套餐管理
                    </a>
                </li>
                <li class="layui-nav-item {eq name='Think.cookie.menu_id' value='4'}layui-this{/eq}">
                    <a class="" href="javascript:;" data-open="{:U('User/index')}" data-menu-id="4">
                        <i class="fa fa-user-o font-icon"></i>&nbsp;
                        会员列表
                    </a>
                </li>
                <li class="layui-nav-item {eq name='Think.cookie.menu_id' value='5'}layui-this{/eq}">
                    <a class="" href="javascript:;" data-open="{:U('Change/index')}" data-menu-id="5">
                        <i class="fa fa-pie-chart font-icon"></i>&nbsp;
                        充值记录
                    </a>
                </li>
                <li class="layui-nav-item {eq name='Think.cookie.menu_id' value='6'}layui-this{/eq}">
                    <a class="" href="javascript:;" data-open="{:U('Cash/index')}" data-menu-id="6">
                        <i class="fa fa-credit-card-alt font-icon"></i>&nbsp;
                        提现记录
                    </a>
                </li>
                <li class="layui-nav-item {eq name='Think.cookie.menu_id' value='7'}layui-this{/eq}">
                    <a class="" href="javascript:;" data-open="{:U('Task/index')}" data-menu-id="7">
                        <i class="fa fa-sliders font-icon"></i>&nbsp;
                        任务记录
                    </a>
                </li>
                <li class="layui-nav-item {eq name='Think.cookie.menu_id' value='8'}layui-this{/eq}">
                    <a class="" href="javascript:;" data-open="{:U('TaskList/index')}" data-menu-id="8">
                        <i class="fa fa-tasks font-icon"></i>&nbsp;
                        任务列表
                    </a>
                </li>
                <li class="layui-nav-item {eq name='Think.cookie.menu_id' value='9'}layui-this{/eq}">
                    <a class="" href="javascript:;" data-open="{:U('Number/index')}" data-menu-id="9">
                        <i class="fa fa-map-signs font-icon"></i>&nbsp;
                        快递单号
                    </a>
                </li>
                <li class="layui-nav-item {eq name='Think.cookie.menu_id' value='10'}layui-this{/eq}">
                    <a class="" href="javascript:;" data-open="{:U('Buy/index')}" data-menu-id="10">
                        <i class="fa  fa-buysellads font-icon"></i>&nbsp;
                        购买记录
                    </a>
                </li>
                <li class="layui-nav-item {eq name='Think.cookie.menu_id' value='11'}layui-this{/eq}">
                    <a class="" href="javascript:;" data-open="{:U('Config/user')}" data-menu-id="11">
                        <i class="fa  fa-user-circle-o font-icon"></i>&nbsp;
                        个人中心
                    </a>
                </li>
                <li class="layui-nav-item {eq name='Think.cookie.menu_id' value='12'}layui-this{/eq}">
                    <a class="" href="javascript:;" data-open="{:U('Banner/index')}" data-menu-id="12">
                        <i class="fa  fa-image font-icon"></i>&nbsp;
                        轮播图管理
                    </a>
                </li>
            </ul>
        </div>
    </div>

    <!-- 内容主体区域 -->
    <div class="framework-body"></div>

    <!--    <div class="layui-footer">
             底部固定区域 
            © layui.com - 底部固定区域
        </div>-->
</div>
<script>
    //JavaScript代码区域
    layui.use('element', function () {
        var element = layui.element;
        element.init();
    });
    //    $('.layui-nav').on('click', '.layui-nav-item', function() {
    //        var check = $(this).is('.layui-nav-itemed');
    //        if (check == true) {
    //            var notthis = $('.layui-nav.layui-nav-tree').find('.layui-nav-item').not($(this));
    //            notthis.removeClass('layui-nav-itemed');
    //        }
    //    });
</script>
{/block}